package com.vastcom.sigma.admin.model;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;

@Entity
public class Prohouseid {
    private String prohouseid;
    private String scpc;
    private String encapsulationid;
    private String ckgly;
    private Date rksj;
    private String proname;
    private Integer pronum;
    private String clqk;

    @Id
    @Column(name = "prohouseid")
    public String getProhouseid() {
        return prohouseid;
    }

    public void setProhouseid(String prohouseid) {
        this.prohouseid = prohouseid;
    }

    @Basic
    @Column(name = "scpc")
    public String getScpc() {
        return scpc;
    }

    public void setScpc(String scpc) {
        this.scpc = scpc;
    }

    @Basic
    @Column(name = "encapsulationid")
    public String getEncapsulationid() {
        return encapsulationid;
    }

    public void setEncapsulationid(String encapsulationid) {
        this.encapsulationid = encapsulationid;
    }

    @Basic
    @Column(name = "ckgly")
    public String getCkgly() {
        return ckgly;
    }

    public void setCkgly(String ckgly) {
        this.ckgly = ckgly;
    }

    @Basic
    @Column(name = "rksj")
    public Date getRksj() {
        return rksj;
    }

    public void setRksj(Date rksj) {
        this.rksj = rksj;
    }

    @Basic
    @Column(name = "proname")
    public String getProname() {
        return proname;
    }

    public void setProname(String proname) {
        this.proname = proname;
    }

    @Basic
    @Column(name = "pronum")
    public Integer getPronum() {
        return pronum;
    }

    public void setPronum(Integer pronum) {
        this.pronum = pronum;
    }

    @Basic
    @Column(name = "clqk")
    public String getClqk() {
        return clqk;
    }

    public void setClqk(String clqk) {
        this.clqk = clqk;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Prohouseid that = (Prohouseid) o;

        if (prohouseid != null ? !prohouseid.equals(that.prohouseid) : that.prohouseid != null) return false;
        if (scpc != null ? !scpc.equals(that.scpc) : that.scpc != null) return false;
        if (encapsulationid != null ? !encapsulationid.equals(that.encapsulationid) : that.encapsulationid != null)
            return false;
        if (ckgly != null ? !ckgly.equals(that.ckgly) : that.ckgly != null) return false;
        if (rksj != null ? !rksj.equals(that.rksj) : that.rksj != null) return false;
        if (proname != null ? !proname.equals(that.proname) : that.proname != null) return false;
        if (pronum != null ? !pronum.equals(that.pronum) : that.pronum != null) return false;
        if (clqk != null ? !clqk.equals(that.clqk) : that.clqk != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = prohouseid != null ? prohouseid.hashCode() : 0;
        result = 31 * result + (scpc != null ? scpc.hashCode() : 0);
        result = 31 * result + (encapsulationid != null ? encapsulationid.hashCode() : 0);
        result = 31 * result + (ckgly != null ? ckgly.hashCode() : 0);
        result = 31 * result + (rksj != null ? rksj.hashCode() : 0);
        result = 31 * result + (proname != null ? proname.hashCode() : 0);
        result = 31 * result + (pronum != null ? pronum.hashCode() : 0);
        result = 31 * result + (clqk != null ? clqk.hashCode() : 0);
        return result;
    }
}
